package de.koller.magnitude.web;

import de.koller.aframe.util.node.NodeA;
import de.koller.aframe.util.web.basicHTML.BasicWebServer;
import de.koller.magnitude.MRoot;
import de.koller.magnitude.prototype.WinPage;
import de.koller.magnitude.web.pages.IndexPage;
import de.koller.oceanFramework.tree.Child;
import de.koller.oceanFramework.tree.Mother;

public class WebDisplayRoot extends NodeA {
	
	@Child public final BasicWebServer server = new BasicWebServer( 9000 );
	@Mother public MRoot mroot;
	
	public WebDisplayRoot() {
		server.addPage( "/index", new IndexPage( this ) );
		server.addPage( "/prototype", new WinPage( this ) );
	}
	
}
